package com.yixun.qfbao.apidto;

import com.yixun.qfbao.apidto.base.CommonResDTO;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *    楼盘和案场人员对应关系的DTO
 * @author zilong.liu
 *
 */
public class PremisesAndCaseMemberResDto extends CommonResDTO{

	/**
	 * 案场人员和楼盘对应关系的集合
	 */
	private List<Map<String, Object>> premisesAndCaseMemberList;

	public List<Map<String, Object>> getPremisesAndCaseMemberList() {
		return premisesAndCaseMemberList;
	}

	public void setPremisesAndCaseMemberList(List<Map<String, Object>> premisesAndCaseMemberList) {
		this.premisesAndCaseMemberList = premisesAndCaseMemberList;
	}
	
	/**
	 *  添加案场和楼盘人员
	 * @param premisesAndCaseMemberDto
	 */
	public void addPremisesAndCaseMember(Map<String, Object> premisesAndCaseMemberDto) {
		List<Map<String, Object>> premisesAndCaseMemberList = this.getPremisesAndCaseMemberList();
		if(premisesAndCaseMemberList != null) {
			premisesAndCaseMemberList = new ArrayList<>();
		}
		premisesAndCaseMemberList.add(premisesAndCaseMemberDto);
	}
	
}
